package tr.com.netgis.web;

/**
 * 
 * @author NetGis
 *
 */
public abstract class AResponse {
	private String responseXml;
	private LoginRequest request;
	private Exception exception;
	private String exceptionString;

	public AResponse(String responseXml, LoginRequest request) {
		super();
		this.responseXml = responseXml;
		this.request = request;
	}
	
	public AResponse(Exception e, LoginRequest request) {
		super();
		this.exception = e;;
		this.request = request;
	}


	public String getResponseXml() {
		return responseXml;
	}

	public void setResponseXml(String responseXml) {
		this.responseXml = responseXml;
	}

	public LoginRequest getRequest() {
		return request;
	}

	public void setRequest(LoginRequest request) {
		this.request = request;
	}

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public String getExceptionString() {
		return exceptionString;
	}

	public void setExceptionString(String exceptionString) {
		this.exceptionString = exceptionString;
	}

	abstract void parse();
	
}
